package com.example.eureka_client.service;

import com.example.eureka_client.entity.CommentsAgree;
import com.example.eureka_client.entity.CommentsReply;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 评论回复表 服务类
 * </p>
 *
 * @author plj
 * @since 2022-03-24
 */
public interface ICommentsReplyService extends IService<CommentsReply> {
    boolean addChildComment(CommentsReply commentsReply);
    boolean removeById(String id);
    boolean addChildAgree(CommentsAgree commentsAgree);
    boolean addChildNotAgree(CommentsAgree commentsAgree);
    boolean reChildAgree(CommentsAgree commentsAgree);
    boolean reChildNotAgree(CommentsAgree commentsAgree);
    List<CommentsReply> getChildComments(String fatherCommentsId);

    boolean isChildAgree(CommentsAgree commentsAgree);
}
